
from task.base.baseApi import Base
import time
import task.pageObject
import allure

class PageLogin(Base):
    @allure.step('输入登录账户名')
    def input_username(self,login_username):
        self.base_input(task.pageObject.loc_login_username,login_username)

    @allure.step('输入登录密码')
    def input_pwd(self,login_pwd):
        self.base_input(task.pageObject.loc_login_pwd,login_pwd)

    @allure.step('点击登录按钮')
    def click_login(self):
        self.base_click(task.pageObject.loc_login)
        time.sleep(2)


